﻿@model Presentation.Web.Client.Models.LinksCollectionViewModel
@using Presentation.Web.Client.Models
<div id="linksCollection">
    <div id="collectionTitle">@Model.CollectionTitle</div>
    <ul>
        @foreach (Presentation.Web.Client.Models.Link item in Model.Links)
        {
            <li  id="addLink">
                @if (!string.IsNullOrEmpty(item.Area))
                {
                    @Html.ActionLink(item.Name, item.Action, item.Control, new { area = item.Area }, null)
                }
                else
                {
                    @Html.ActionLink(item.Name, item.Action, item.Control)
                }
            </li>
        }
    </ul>
</div>
